<%@page contentType="text/html; charset=utf-8"%>
<%@ include file="/WEB-INF/jsp/include.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
  	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>用户管理</title>
	<meta http-equiv="pragma" content="no-cache" />
	<meta http-equiv="keywords" content="" />
	<meta http-equiv="description" content="" />
	<link href="${ctx}/css/main.css" rel="stylesheet" type="text/css" />
	<link rel="stylesheet" type="text/css" href="${ctx}/js/easyui/themes/default/easyui.css"/>
	<link rel="stylesheet" type="text/css" href="${ctx}/js/easyui/themes/icon.css"/>
	<style type="text/css">
		#main{
			width:80%;
		}
	</style>
	<script type="text/javascript" src="${ctx}/js/jquery-1.4.2.js"></script>
	<script type="text/javascript" src="${ctx}/js/jquery.validate.js"></script>
	<script type="text/javascript" src="${ctx}/js/jquery.metadata.js"></script>
	<script type="text/javascript" src="${ctx}/js/easyui/jquery.easyui.min.js"></script>
	<script type="text/javascript">
		$(function() {
			$('#sub').removeAttr('disabled');
		});	
	</script>
  </head>
  <body>
  	<div id="main">
   		<div class="titlediv">您所在的位置：系统管理->用户管理->分配角色</div>
    	<div id="content" class="margin_10">
    	<form id="theform" action="${ctx}/user/user.do" method="post">
    		<input type="hidden" name="action" value="dispatchRoleManage"/>
            <input id="page" name="page" type="hidden" value="${page}" />
            <input type="hidden" name="username" value="${username}" />
            <input type="hidden" name="name" value="${name}" />
            <input id="queryEnabledValue" name="queryEnabledValue" type="hidden" value="${queryEnabledValue}" />
    		<div id="form">
    			<table cellpadding="0" cellspacing="0" border="0" style="width:50%" class="querytab">
	    			<tr>
		    			<td class="alignright_30">编码：</td><td class="alignleft">${user.id}<input type="hidden" name="user.id" value="${user.id}"/></td>
		    		</tr>
	    			<tr>
		    			<td class="alignright_30">用户名：</td><td class="alignleft">${user.username}</td>
		    		</tr>
		    		<tr>
		    			<td class="alignright_30">姓名：</td><td class="alignleft">${user.name}</td>
		    		</tr>
					<tr><td class="alignright">选择角色：</td><td class="alignleft"><s:select name="role.id" list="roles" value="%{role.id}" listKey="id" listValue="name" headerKey="0" headerValue="请选择"/></td></tr>
	    		</table>
    		</div>
    		<div id="foot"><center><input id="sub" type="submit" value="提交 "/></center></div>
    		<div class="margin_10"><center><a href="javascript:history.back()" class="easyui-linkbutton" iconCls="icon-reload">返回列表</a></center></div>
    	</form>
    	</div>
    </div>
  </body>
</html>
